package com.tedu.basic.Test;
import java.util.Arrays;
import java.util.Random;

public class Test_Array {
    public static void main(String[] args) {
        char[] a=new char[10];//动态 长度位10 默认 0
        char[] b={'1','2','3'};
        a[0]='孙';
        a[1]='悟';
        a[2]='饭';
        System.out.println(a);
        f1();
    }
/*

 */
    public static void f1(){
        int[] a=new int[10];
        for (int i = 0; i <a.length ; i++) {

            a[i]=new Random().nextInt(100);
        }
        System.out.println(Arrays.toString(a));
    }

}